package com.jiaoyu.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

@Component
@FeignClient(name = "service-ucenter", fallback = CommentClientImpl.class)
public interface CommentClient {
    //根据用户id获取用户信息
    //定义到调用方法的路径
    @PostMapping("/educenter/member/getMemberInfoById/{id}")
    public Map getUserId(@PathVariable("id") String id);
}
